import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/meetingRoom/list',
    method: 'get',
    params: params
  })
}

export function createMeetingroom(data) {
  return request({
    url: '/meetingRoom/create',
    method: 'post',
    data: data
  })
}

export function updateMeetingroom(id, data) {
  return request({
    url: '/meetingRoom/update/' + id,
    method: 'post',
    data: data
  })
}

export function deleteMeetingroom(id) {
  return request({
    url: '/meetingRoom/delete/' + id,
    method: 'post'
  })
}

export function fetchAllMeetingroomList() {
  return request({
    url: '/meetingRoom/listAll',
    method: 'get'
  })
}

export function updateStatus(id, params) {
  return request({
    url: '/meetingRoom/updateStatus/' + id,
    method: 'post',
    params: params
  })
}

export function updateStatus1(id, params) {
  return request({
    url: '/meetingRoom/updateStatus/' + id,
    method: 'post',
    params: params
  })
}
